#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "uthash.h"

#include <iso646.h>

char slowestKey(int* releaseTimes, int releaseTimesSize, char* keysPressed);

int main()
{
	return 0;
}

char slowestKey(int* releaseTimes, int releaseTimesSize, char* keysPressed)
{
	int res = -1, span = -1;
	for (int i = releaseTimesSize - 1; i > 0; i--)
		releaseTimes[i] = releaseTimes[i] - releaseTimes[i - 1];
	for (int i = 0; i < releaseTimesSize; i++)
		if (releaseTimes[i] > span || (releaseTimes[i] == span && keysPressed[res] < keysPressed[i])) {
			res = i;
			span = releaseTimes[i];
		}
	return keysPressed[res];
}
